home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / flogger.zip / MAKEFILE < prev    next >
Text File  |  1992-12-30  |  2KB  |  69 lines

  1.  
  2. CC =        cc
  3. CFLAGS =    -O4 -pic
  4. STATICFLAGS =    -Bstatic
  5.  
  6. # CC = gcc
  7. # CFLAGS =     -fpic -O2 -ansi -traditional \
  8. #         -W -Wunused -Wcomment -Wtrigraphs -Wformat -Wuninitialized \
  9. #         -Wparentheses -Wshadow -Wpointer-arith -Wcast-qual \
  10. #         -Wconversion -Wswitch -Wid-clash-32
  11. # STATICFLAGS =    -static
  12.  
  13.  
  14. LDFLAGS =     -assert pure-text
  15. LINTFLAGS =     -abhuxz
  16.  
  17. # don't insert a line break after the -d
  18. SHARFLAGS =    -v -l40 -M -d__KRILL_ARE_YUMMY_AND_CRUNCHY
  19.  
  20. VERSION =    0.0
  21. SHELL =        /bin/sh
  22.  
  23. OBJS =     merge_sort.o \
  24.     quick_sort.o \
  25.     heap_sort.o \
  26.     shell_sort.o \
  27.     bubble_sort.o \
  28.     bogo_sort.o \
  29.     insert_sort.o
  30.  
  31. flogger: flogger.o libsort.so.$(VERSION)
  32.     $(CC) $(CFLAGS) -o flogger flogger.o -L. -lsort
  33.  
  34. flogger.static: flogger.o libsort.a
  35.     $(CC) $(CFLAGS) $(STATICFLAGS) -o flogger.static flogger.o -L. -lsort
  36.  
  37. libsort.a: $(OBJS)
  38.     ar ru libsort.a $(OBJS)
  39.     ranlib libsort.a
  40.  
  41. libsort.so.$(VERSION): $(OBJS)
  42.     ld $(LDFLAGS) $(OBJS) -o libsort.so.$(VERSION)
  43.  
  44. $(OBJS): sorting.h
  45.  
  46. install: libsort.so.$(VERSION) libsort.a
  47.     cp libsort.a /usr/lib
  48.     chmod 644 /usr/lib/libsort.a
  49.     cp libsort.so.$(VERSION) /usr/lib
  50.     chmod 755 /usr/lib/libsort.so.$(VERSION)
  51.     /usr/etc/ldconfig
  52.  
  53. lint:    lint.out
  54.  
  55. lint.out: *.c sorting.h
  56.     lint $(LINTFLAGS) *.c > lint.out 2>&1
  57.  
  58. clean:
  59.     -rm -f core shar0? $(OBJS) \
  60.     libsort.so.$(VERSION) libsort.a flogger.o \
  61.     flogger flogger.static lint.out
  62.  
  63. shar:    
  64.     shar $(SHARFLAGS) -o shar \
  65.     README INSTALLATION TODO OPTIMIZING Makefile bubble_sort.c \
  66.     heap_sort.c merge_sort.c quick_sort.c shell_sort.c insert_sort.c \
  67.     sorting.h flogger.c bogo_sort.c
  68.  
  69.